<!--#include virtual="/Common/Config.asp" -->
<!--#include virtual="/Common/conn.asp" -->
<!--#include virtual="/2010admin/Check_IsLogin.asp" -->
<!--#include virtual="/Common/Function.asp" -->
<%
Dim ID
Dim SI_Pic
Dim SI_Name
Dim SI_Order

If Request.ServerVariables ("Request_Method")="POST" Then
	Call Edit()	
Else
	Call Get_Service_Item_Info()
End If
Sub Get_Service_Item_Info()

	ID = requery("ID")
	Call Check_IsNumeric_Msg(ID,"ID")
	Sql = "SELECT * FROM Corp_Service_Item WHERE ID="&ID

	Set rs = conn.execute(sql)

	If Not rs.eof Then
		SI_Name	= rs("SI_Name") 
		SI_Pic  = rs("SI_Pic")
		SI_Order= rs("SI_Order")

	End If

End Sub 

Function Edit()

	ID = reform("ID")

	SI_Name = reform("SI_Name")
	SI_Pic= reform("SI_Pic")
	Call Check_IsNumeric(ID)

	Sql = "UPDATE Corp_Service_Item SET SI_Name='"&SI_Name&"'"&_
		  ",SI_Pic='"&SI_Pic&"'"&_
		  "WHERE ID="&ID

	conn.execute(sql)

	
	AlertBox "修改成功!","Service_Item_Query.asp"
End Function 


%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="/2010admin/css/default.css" type="text/css" rel="stylesheet">
<title><%=web_title%></title>
<script language="javascript" src="/2010admin/js/validator.js"></script>
</head>
<body >
<table border="0" width="100%" cellSpacing="0" cellPadding="0">
  <tr>
    <td width="100%" height="5"></td>
  </tr>
  <tr>
    <td width="100%" align="center">
      <table border="0" width="98%" cellSpacing="0" cellPadding="0">
        <tr>
          <td width="*" align="center" valign="top">
            <table border="0" width="100%" cellSpacing="0" cellPadding="0" class="lrbtline">
              <tr>
                <td width="100%" height="25" class="tbtop">管理导航</td>
              </tr>
              <tr>
                <td width="100%" align="center">
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0">
                    <tr>
                      <td width="100%" height="5"></td>
                    </tr>
                  </table>
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0">
                    <tr>
                      <td width="100%" height="20">&nbsp;<img src="/2010admin/images/sico.gif" border="0">&nbsp;<span id="userlist"><a href="Service_Item_Query.asp">服务项目</a></span>&nbsp;&nbsp;<span id="useradd"></span></td>
                    </tr>
                    <tr>
                      <td width="100%" height="5"></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <table border="0" width="100%" cellSpacing="0" cellPadding="0">
              <tr>
                <td width="100%" height="5"></td>
              </tr>
            </table>

            <table border="0" width="100%" cellSpacing="0" cellPadding="0" class="lrbtline">
              <tr>
                <td width="100%" height="25" class="tbtop">修改服务项目</td>
              </tr>
              <tr>
                <td width="100%" align="center">
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0">
                    <tr>
                      <td width="100%" height="5"></td>
                    </tr>
                  </table>
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0">
                  <form action="?action=add" method="post" name="form1" onSubmit="return Validator.Validate(this, 2)">

                    <tr>
                      <td width="137" height="25"><div align="center"></div>服务项目</td>
                      <td width="1074"><input name="SI_Name" type="text" id="SI_Name" value="<%=SI_Name%>" size="40" dtype="Limit" min="2" max="20" dmsg="分类必须在2-20个字符间" ></td>
                    </tr>
                    <tr>
                      <td width="137" height="25"><div align="center"></div>图标</td>
                      <td width="1074"><input type="text" name="SI_Pic"  value="<%=SI_Pic%>" size="60" ><iframe id=d_file frameborder=0 src="/2010admin/common/file_upload.asp?change_field=SI_Pic" width="300" height="40" scrolling=no></iframe></td>
                    </tr>
                    <tr>
                      <td height="25" colspan="2"><div align="center">
						<input type="hidden" name="ID" value="<%=ID%>">
                        </div><input type="submit" name="submit" value="修改" class="button"></td>
                      </tr>
                  </form>
                  </table>

                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td width="100%" height="5"></td>
  </tr>
</table>
</body>
</html>
<%
Call conn_close()
%>

